package zdream.pmfield.data.foe;

/**
 * @author Zdream
 * @date 2023-11-09
 * @since 0.0.1
 */
public class FoeTemplate {
	public final int id, subId;
	public String name;
	public Type[] types;

	public short[] bStats = new short[BStat.values().length];
	public short[] vStats = new short[VStat.values().length];
	public static final short V_STAT_BASIC_VALUE = 60;
	public static final short V_STAT_HALF_VALUE = 50;

	public FoeTemplate(int id) {
		this(id, 0);
	}

	public FoeTemplate(int id, int subId) {
		this.id = id;
		this.subId = subId;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(100);
		builder.append('#').append(id);
		if (subId != 0) {
			builder.append('(').append(subId).append(')');
		}

		builder.append(' ').append(name);

		return builder.toString();
	}
}
